//
//  HomePageDataModel.m
//  YHYRealx
//
//  Created by yanghuiyan on 16/4/19.
//  Copyright © 2016年 yanghuiyan. All rights reserved.
//

#import "HomePageDataModel.h"

@implementation HomePageDataModel

- (void)dealloc {
    
    [_hp_img_url release];
    [_hp_content release];
    [_hp_makettime release];
    [_hp_author release];
    [_hp_title release];
    
    [super dealloc];
    
}

- (CGFloat)heightForDetail:(UIFont *)font width:(CGFloat)width {
    
    NSDictionary *fontDic = [NSDictionary dictionaryWithObject:[UIFont systemFontOfSize:12] forKey:NSFontAttributeName];
    CGSize size = [self.hp_content boundingRectWithSize:CGSizeMake(width, 10000) options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading attributes:fontDic context:nil].size;
    
    return size.height + 20;
}

@end
